package operator;

/**
 * @Author Miku
 * @Create 2021/2/3 14:30
 */
public class Demo02 {
    public static void main(String[] args) {
        long a = 123213123123123L;
        int b = 123;
        short c = 10;
        byte d = 8;

        //多个数相加时，有long/double类型结果便为long/double类型，否则都为int类型
        System.out.println(a + b + c + d);
        System.out.println(b + c + d);
        System.out.println(c + d);
    }
}
